import server from './myAxios/interceptors'
//订单数据列表
export const getOrders=(data)=>{
    return server.request({
        url:'orders',
        method:'get',
        params:{...data}
    });
}
//查看订单详情
export const putOrdersId=(id)=>{
    return server.request({
        url:`orders/${id}`,
        method:'get',
    });
}
//折线统计图
export const getLineChart=(id)=>{
    return server.request({
        url:`reports/type/1`,
        method:'get',
    });
}